package com.wthink.hzgj.data.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.wthink.hzgj.data.domain.CheckIn
import com.wthink.hzgj.data.domain.Line

@Dao
interface CheckinDao {

    @Query("SELECT * FROM CheckIn")
    suspend fun list(): List<CheckIn>

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    suspend fun save(data: Line)

}